﻿using System;

using RemotingFramework = DreamCube.Framework.Utilities.Remoting;

namespace Remoting
{
    public class TestClass : RemotingFramework.BasicObject
    {
        public void SendMsg(String msg)
        {
            Console.WriteLine("接受到客户发送的消息:" + msg);
        }

        public delegate void GetMsgEventHandler(String msg);

        public event GetMsgEventHandler GetMsg;

        public void FireGetMsgEvent(String msg)
        {
            this.FireEventAsynch(GetMsg, msg);
        }
    }
}
